package com.jeehentor.utils;

import jakarta.servlet.http.HttpServletResponse;

/**
 * @Description : web工具类
 * @Author : wzd
 * @Date : 2024/4/11 10:32
 * @Version : 1.0
 **/
public class WebUtil {

    public static String renderString(HttpServletResponse response,String string) {
        try {
            response.setStatus(200);
            response.setContentType("application/json");
            response.setCharacterEncoding("utf-8");
            response.getWriter().print(string);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }
}
